package com.css.zfzx.fwsjcj.modules.user.repository;

import com.css.bpm.platform.org.user.repository.entity.UserEntity;
import com.css.zfzx.fwsjcj.commen.util.Constant;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BaseUserRepository extends JpaRepository<UserEntity, String> {
   @Query("select t from UserEntity t where t.extend1 =:type and t.isValid="+ Constant.IS_VALID_YES)
    List<UserEntity> findUserByType(String type);
}
